package com.shopping.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.shopping.bean.User;

/**
 * @author zjh
 *
 */
@WebServlet("/changeInform.do")
public class ChangeInformationServlet extends HttpServlet {
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		User user = (User)req.getSession().getAttribute("loginUser");
		req.getSession().setAttribute("userInform", user);
		req.getRequestDispatcher("updateUserMassage.jsp").forward(req, resp);
	}
	
}
